import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
//按需导入
// import AutoImport from 'unplugin-auto-import/vite'
// import Components from 'unplugin-vue-components/vite'
// import { ElementPlusResolver } from 'unplugin-vue-components/resolvers'
//手动导入
// import ElementPlus from 'unplugin-element-plus/vite'
// https://vite.dev/config/
export default defineConfig({
  plugins: [vue(),
    //按需导入

    // AutoImport({
    //   resolvers: [ElementPlusResolver()],
    // }),
    // Components({
    //   resolvers: [ElementPlusResolver()],
    // }),

    //手动导入
    //  ElementPlus()
   
  ],

  //添加别名
  resolve:{
    alias:[{
      find:"@",
      replacement:"/src",
    }]
  }
})
